package com.rmondjone.view

import android.widget.ImageView
import com.blankj.utilcode.util.LogUtils
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.rmondjone.androidcamerademo.R

/**
 * copyright：
 * @author：anthui creation date： .
 * @since: 1.0.0
 * @describe:
 */
class ImageAdapter : BaseQuickAdapter<String, BaseViewHolder>(R.layout.item_image) {
    override fun convert(helper: BaseViewHolder, item: String) {

        var view = helper.getView<ImageView>(R.id.iv_pic)
        Glide.with(mContext).load(item).into(view)

//        LogUtils.e("-- " + item)
    }
}
